package com.example.demo.dao;

import com.example.demo.model.Plant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2018\6\29 0029.
 */
@Mapper
public interface PlantMapper {

    List<Plant> queryAll();

    @Select("select * from plant where id = #{id}")
    List<Plant> queryById(Integer id);
}
